-- CALC_BINE_MP

-- 计算魔藤当前魔法值
-- @param bine    魔藤
return function(bine, fix)
    local mp = bine.dbase:query("mp", 0);

    -- 加成
    local prop = PropM.combine(bine, "attrib2", "max_mp");
    mp = PropM.apply(prop, mp);

    if fix then
        mp = iif(mp < 0, 0, mp);
    end

    return mp;
end
